<layout name="Layout/layout" />
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">报名情况</h1>
	</div>
	<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				报名列表
				<a class="btn btn-default btn-xs pull-right" href="{:U('Admin/Enroll/exportexcelwithmoreinfo')}" role="button">
					<span class="glyphicon glyphicon-download" aria-hidden="true"></span>导出为excel
				</a>
			</div>
			<!-- /.panel-heading -->
			<div class="panel-body">
			<?php
				$head = array(
					'id'	=>	array('ID', 'doNothing'),
					'uid'	=>	array('报名用户','getUsername'),
                    'enrolltime'    =>  array('报名时间','formatDate'),
                    'uptime'    =>  array('最后更新时间','formatDate'),
                    'ispayed'   =>  array('是否已经支付','isPayed'),
                    'major' =>  array('报名专业','getMajorNames'),
                    'examcenter'    =>  array('考点','getExamcenterName'),
                    'province'  =>  array('高考省份', 'getProvinceName'),
                    'stunumber' =>  array('考生号', 'doNothing'),
                    'address'   =>  array('通讯地址', 'doNothing'),
                    'zipcode'   =>  array('邮政编码', 'doNothing'),
                    'telofparent'   =>  array('家长电话', 'doNothing'),
                    'tel'   =>  array('本人电话', 'doNothing'),
                    'sex'   =>  array('性别', 'getSex'),
                    'birthday'  =>  array('生日', 'doNothing'),
                    'politics'  =>  array('政治面貌', 'getPolitics'),
                    'isfresh'   =>  array('应往届', 'getisfresh'),
					'is_science_focus'	=>	array('文理科', 'getScienceFocus'),
                    'nation'    =>  array('民族', 'getNation'),
                    'school'    =>  array('所在学校', 'doNothing'),
                    'qq'    =>  array('本人qq', 'doNothing')
				);
			?>
			{:W('Table/tableWithFunction', array($head, $enrolllist))}
			</div>
			<!-- /.panel-body -->
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
</div>
<script>
window.onload = function(){
$('#dataTables-example').DataTable({
		responsive: true
});
}
</script>
